package com.cn.crmsystem.service.businessService;

import com.cn.crmsystem.pojo.Login;
import com.cn.crmsystem.pojo.ResultJson;
import com.cn.crmsystem.pojo.Returned;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface ReturnedService {
    /**
     * 查询所有回款
     * @param map
     * @return
     */
    ResultJson selectReturnedAll(Map map);

    /**
     * 新增回款
     * @param returned
     * @return
     */
    ResultJson addReturned(Returned returned, Login login);

    /**
     * 修改回款
     * @param returned
     * @return
     */
    ResultJson updateReturned(Integer id);

    /**
     *
     * @param id
     * @return
     */
    ResultJson deleteReturned(Integer id);

}
